<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>

    <script src="https://unpkg.com/vue"></script>
    <!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/vuex/3.1.1/vuex.min.js"></script> -->
    <style></style>
  </head>
  <body>
    <div id="app">
      <son v-bind="post"></son>
    </div>
    <script>
      Vue.component("son", {
        props: ["a", "b"],
        template: "<h3>{{a}}</h3>"
      });
      new Vue({
        el: "#app",
        data() {
          return {
            post: {
              a: 1,
              b: 2
            }
          };
        }
      });
    </script>
  </body>
</html>
